package framework.formfields;

import java.lang.reflect.Field;

import framework.FormField;

public class FormTextField extends FormField {

	public FormTextField(Field field, String label) throws SecurityException,
			NoSuchFieldException {
		super(field, label);
	}

	@Override
	public String gerarLinha(Object objeto) throws Exception, Throwable {
		return "<tr> <td>" + getLabel() + "</td>" + "<td><INPUT TYPE=\"TEXT\" NAME=\"" + getField().getName() + 
			"\" VALUE=\"" + getField().get(objeto) + "\"></td> </tr>\n";
	}
}
